<template>
    <fieldset>
        <legend>子组件 </legend>
        <h1>子组件</h1>
        <h2>{{ msg }}</h2>
        <h3>provide:{{ msg2 }}</h3>
        <h3>provide:{{ name }}</h3>
        <h2>provide:{{person}}</h2>
    </fieldset>
</template>
<script>
export default {
    inject: ['msg2', 'name','person'],
    data() {
        return {
            msg: 'v50 KFC crazy thursday'
        }
    },
    methods: {
        change() {
            this.msg = 'black friday'
        }
    }
}
</script>